﻿using LightweightApp.Model;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;

namespace LightweightApp
{
    [ConnectionStringName("Default")]
    public class LightweightAbpDbContext:AbpDbContext<LightweightAbpDbContext>
    {
        public LightweightAbpDbContext(DbContextOptions<LightweightAbpDbContext> options):base(options)
        {

        }
        public DbSet<Book> books { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.Entity<Book>(b =>
            {
                b.ToTable(nameof(Book));
            });
        }

    }
}
